home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr13 / aurora2c.zip / QEMENU.AML < prev    next >
Text File  |  1995-04-07  |  19KB  |  467 lines

  1.  
  2. // ───────────────────────────────────────────────────────────────────
  3. // The Aurora Editor v2.0
  4. // Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
  5. //
  6. // QEdit/TSE Menu definitions (included by MAIN.AML)
  7. //
  8. // If you have made any changes, save this file and select 'Recompile
  9. // the Editor' from the Set menu. Exit and re-enter the editor for
  10. // your changes to take effect.
  11. // ───────────────────────────────────────────────────────────────────
  12.  
  13. // ───────────────────────────────────────────────────────────────────
  14. //  Edit Window menu bar and tool bar
  15. // ───────────────────────────────────────────────────────────────────
  16.  
  17.   function  EditMen
  18.  
  19.     // menu bar
  20.     menubar "" 1
  21.       item "&File"     "editFile"
  22.       item "&Window"   "editWindow"
  23.       item "&Block"    "editBlock"
  24.       item "&Search"   "editSearch"
  25.       item "F&old"     "editFold"
  26.       item "&Edit"     "editEdit"
  27.       item "&Clip"     "editClip"
  28.       item "&Print"    "editPrint"
  29.       item "Se&t"      "editSet"
  30.       item "M&acro"    "editMacro"
  31.       item "&Help"     "editHelp"
  32.     end
  33.  
  34.     // tool bar
  35.     menubar "" 2
  36.       item "<&&≡>"     toolbar                 // close tool bar
  37.       item "<&&?>"     quickref 'u' 'f'        // users guide
  38.       item "<&&*>"     open "*.*"              // display file manager
  39.       item "<&&/>"     copywin                 // copy window
  40.       item "<&&─>"     splitwin 'h'            // split window horz
  41.       item "<&&|>"     splitwin 'v'            // split window vert
  42.       item "<&&o>"     askopen                 // open prompt
  43.       item "<&&s>"     save                    // save file
  44.       item "<&&F>"     askfind                 // find prompt
  45.       item "<&&f>"     findlast                // do last find/replace
  46.       item "<&&r>"     formatblock2 "kr"       // reformat block
  47.       item "<&&«>"     undo                    // undo last change
  48.       item "<&&»>"     redo                    // redo last change
  49.       item "<&&>>"     foldblock2              // fold block
  50.       item "<&&<>"     destroyfold2            // destroyfold
  51.     end
  52.   end
  53.  
  54.  
  55. // ───────────────────────────────────────────────────────────────────
  56. //  Edit Window pulldown menus
  57. // ───────────────────────────────────────────────────────────────────
  58.  
  59.   menu  "editFile"
  60.     item " &New"                            opennew
  61.     item " &Open..                <alt e>"  askopen
  62.     item " Open and &Insert..     <alt r>"  askinsert
  63.     item " Open &Binary.."                  askopenb
  64.     item " Open Las&t"                      openlast
  65.     item " &Rename..              <alt o>"  askname
  66.     item " &Save              <ctrl k><s>"  save
  67.     item " Sa&ve As.."                      asksaveas
  68.     item "-"
  69.     item " &File Manager.."                 open "*.*"
  70.     item " Ne&xt                  <alt n>"  nextfile
  71.     item " &Prev                  <alt p>"  prevfile
  72.     item " &List..                <alt 0>"  filelist
  73.     item "─"
  74.     item " &Close             <ctrl k><q>"  close
  75.     item " Close &All             <alt x>"  closeall
  76.     item " Sav&e and Close    <ctrl k><x>"  close 's'
  77.     item " Save an&d Close All"             closeall 's'
  78.     item '─'
  79.     item " Abo&ut.."                        about
  80.   end
  81.  
  82.  
  83.   menu  "editWindow"
  84.     item " &Restore"                       restore
  85.     item " &Move/Size       <ctrl o><r>"   sizekey
  86.     item " P&an               <ctrl f6>"   pankey
  87.     item " M&inimize"                      minimize
  88.     item " Ma&ximize        <ctrl o><z>"   maximize
  89.     item " &Next            <ctrl o><n>"   nextwindow
  90.     item " &Prev            <ctrl o><p>"   prevwindow
  91.     item " &List.."                        winlist
  92.     item "─"
  93.     item " &Copy"                          copywin
  94.     item " Split Hor&z      <ctrl o><h>"   splitwin 'h'
  95.     item " Split Ver&t      <ctrl o><v>"   splitwin 'v'
  96.     item "─"
  97.     item " Ca&scade"                       cascade
  98.     item " Tile &Horz"                     tile 'h'
  99.     item " Tile &Vert"                     tile 'v'
  100.     item "─"
  101.     item " Tool &Bar          <ctrl f8>"   toolbar
  102.     item " St&yle Toggle"                  togglestyle
  103.     item " Pr&ompt Style.."                askprompt
  104.   end
  105.  
  106.   menu  "editMark"
  107.     item " Mark &Line           <alt l>"   markline
  108.     item " Mark &Column         <alt b>"   markcolumn
  109.     item " Mark C&haracter      <alt a>"   markchar
  110.     item " Mark &Word       <ctrl k><t>"   markword
  111.     item " Mark to &EOL         <alt 2>"   markeol
  112.     item " Mark &Paragraph      <alt 3>"   markpara "tb"
  113.     item "─"
  114.     item " &Unmark              <alt u>"   destroymark
  115.   end
  116.  
  117.   menu  "editBlock"
  118.     item " Mar&k..                    "    submenu "editMark"
  119.     item " &Copy                <alt c>"    copyblock2
  120.     item " Copy &Over           <alt z>"    copyblockover
  121.     item " &Move                <alt m>"    moveblock2
  122.     item " Mo&ve Over"                      moveblockover
  123.     item " &Delete              <alt g>"    deleteblock2
  124.     item " &Indent           <shift f8>"    shiftblock  1
  125.     item " Uninden&t         <shift f7>"    shiftblock -1
  126.     item "─"
  127.     item " &Fill            <ctrl k><l>"    fillblock2
  128.     item " &Reformat            <alt b>"    formatblock2 "kr"
  129.     item " R&eformat Right"                 formatblock2 "rj"
  130.     item " S&ave..              <alt w>"    saveblock2
  131.     item " &Sort             <shift f3>"    sortblock2
  132.     item " Lo&wercase          <alt f4>"    caseblock 'l'
  133.     item " U&ppercase        <shift f4>"    caseblock
  134.     item "─"
  135.     item " &Left Justify"                   justblock2 'l'
  136.     item " Ri&ght Justify"                  justblock2 'r'
  137.     item " Ce&nter          <ctrl k><c>"    justblock2 'c'
  138.   end
  139.  
  140.   menu  "editSearch"
  141.     item " &Find..   <ctrl q><f> or <ctrl f>"   askfind
  142.     item " Re&place..               <ctrl r>"   askrepl
  143.     item " &Repeat Last Find/Repl   <ctrl l>"   findlast
  144.     item " &Scan Files..            <ctrl s>"   askscan
  145.     item " &Incremental Search      <ctrl i>"   isearch
  146.     item " Find &Occurrences..       <alt v>"   askfindo
  147.     item "─"
  148.     item " &Quick Bookmark"                     quickbook
  149.     item " Pre&v Bookmark"                      cyclebook
  150.     item " Place &Bookmark..        <ctrl 2>"   placebook
  151.     item " &Go to Bookmark..        <ctrl 6>"   askbook
  152.     item "─"
  153.     item " Go to &Line..            <ctrl j>"   askrow
  154.     item " Go to Bloc&k Start    <ctrl q><b>"   gotomark 't'
  155.     item " Go to Block En&d      <ctrl q><k>"   gotomark 'b'
  156.     item " Go to Ne&xt Fold          <alt 7>"   search2 "f/f"
  157.     item "─"
  158.     item " Find &Matching Char      <alt f3>"   gotomatch2
  159.     item " Go to Compiler &Error    <alt f7>"   gotoerror
  160.   end
  161.  
  162.   menu  "editFold"
  163.     item " &Fold Next Line          <alt 8>"    foldline
  164.     item " &Unfold Next Line        <alt 9>"    foldline 'u'
  165.     item "─"
  166.     item " C&reate Fold"                        createfold
  167.     item " &Destroy Fold"                       destroyfold2
  168.     item " &Open Fold               <alt \\>"   openfold
  169.     item " &Close Fold              <alt \\>"   closefold
  170.     item "─"
  171.     item " Fold Bloc&k"                         foldblock2
  172.     item " Fold Block Fl&at"                    foldflat
  173.     item " Des&troy Block Folds"                foldblock 'ds'
  174.     item " O&pen Block Folds"                   foldblock 'os'
  175.     item " C&lose Block Folds"                  foldblock 'cs'
  176.     item "─"
  177.     item " Destro&y All Folds"                  foldall 'ds'
  178.     item " Ope&n All Folds          <alt [>"    foldall 'os'
  179.     item " Clo&se All Folds         <alt ]>"    foldall 'cs'
  180.     item "─"
  181.     item " &Export without Folds.."             asksaveas 'x'
  182.     item " E&xport Block without Folds.."       saveblock2 'x'
  183.   end
  184.  
  185.   menu  "editEdit"
  186.     item " &Undo                  <ctrl u>"   undo
  187.     item " &Redo               <ctrl k><r>"   redo
  188.     item "─"
  189.     item " &Insert Line   <alt f2> or <f2>"   insline2
  190.     item " &Delete Line            <alt d>"   delline
  191.     item " &Split Line             <alt s>"   splitline2
  192.     item " &Join Line              <alt j>"   joinline
  193.     item "─"
  194.     item " &Erase to End              <f6>"   delchar (getlinelen)
  195.     item " Delete Right &Word     <ctrl t>"   delword
  196.     item " Du&plicate Line            <f4>"   insline (gettext)
  197.     item " Sw&ap Lines           <ctrl f2>"   swapline
  198.     item " Ce&nter Line        <ctrl o><t>"   centerline
  199.     item "─"
  200.     item " &Comment Line          <alt f1>"   commentline
  201.     item " Enter &Literal..       <ctrl p>"   literal
  202.     item " ASCII C&hart..         <ctrl a>"   asciilist
  203.     item " Date/&Time Stamp"                  timestamp
  204.     item " E&xpand Tabs"                      tabfile
  205.     item " Hi&ghlight Word"                   hiliteword
  206.   end
  207.  
  208.   menu  "editClip"
  209.     item " Cu&t                     <grey->"  cut
  210.     item " Cut &Append         <ctrl grey->"  cut 'a'
  211.     item " &Copy                    <grey+>"  copy
  212.     item " Cop&y Append        <ctrl grey+>"  copy 'a'
  213.     item "─"
  214.     item " &Paste                   <grey*>"  paste
  215.     item " Paste &Over         <ctrl grey*>"  paste 'o'
  216.     item "─"
  217.     item " C&lear              <ctrl grey/>"  clear
  218.     item " Current Clip&board..|*"            askclip
  219.   end
  220.  
  221.   menu  "editPrint"
  222.     item " &Print"                            print
  223.     item " Print &Block"                      print 'b'
  224.     item " Print &Formfeed"                   printstr (char 12)
  225.     item "-"
  226.     item " &Header/Footer..|*"                askprthdr
  227.     item " Printer &Settings..|*"             askprint
  228.   end
  229.  
  230.   menu  "Fonts"
  231.     item " 80 cols x 1&4 rows|*"           videomode 80 14
  232.     item " 80 cols x 2&1 rows|*"           videomode 80 21
  233.     item " 80 cols x 2&5 rows|*"           videomode 80 25
  234.     item " 80 cols x 2&8 rows|*"           videomode 80 28
  235.     item " 80 cols x 4&3 rows|*"           videomode 80 43
  236.     item " 80 cols x 5&0 rows|*"           videomode 80 50
  237.     item "─"
  238.     item " 40 cols x &25 rows|*"           videomode 40 25
  239.   end
  240.  
  241.   // Note: do not change the first 12 lines of this menu
  242.   // (except for key definitions)
  243.   menu  "editSet"
  244.     item " &AutoIndent          <ctrl q><i>"   setting 'A' TOGGLE
  245.     item " &Backup"                            setting 'B' TOGGLE
  246.     item " Line &Draw              <ctrl v>"   setting 'D' TOGGLE
  247.     item " Line St&yle..                  "   submenu "LineStyle"
  248.     item " &Match Character"                   setting 'M' TOGGLE
  249.     item " &Smart Tabs          <ctrl q><t>"   setting 'S' TOGGLE
  250.     item " Synta&x Highlighting"               setting 'X' TOGGLE
  251.     item " &Translate"                         setting 'T' TOGGLE
  252.     item " &Undo"                              setting 'U' TOGGLE
  253.     item " &Variable Tabs"                     setting 'V' TOGGLE
  254.     item " &Word Wrap"                         setting 'W' TOGGLE
  255.     item " &Live Word Wrap      <ctrl o><w>"   setting 'L' TOGGLE
  256.     item "─"
  257.     item " Word &Processing..             "   submenu "WordP"
  258.     item " Bi&nary Line Length..|*"            askbinary
  259.     item " Line D&elimiter..|*"                askdelim
  260.     item "─"
  261.     item " V&ideo Mode..                  "   submenu "Fonts"
  262.     item " Save &Current Settings"             saveconfig
  263.     item " &Recompile the Editor"              recompile
  264.   end
  265.  
  266.   menu  "WordP"
  267.     item " &Tab Width..|*"            asktabw
  268.     item " &Variable Tab Stops..|*"   asktabv
  269.     item "─"
  270.     item " &Left Margin..|*"          asklmarg
  271.     item " &Right Margin..|*"         askrmarg
  272.   end
  273.  
  274.   // Note: do not change this menu (except for key definitions)
  275.   menu  "LineStyle"
  276.     item " &Single"               setdraw 0
  277.     item " Double &Horizontal"    setdraw 1
  278.     item " Double &Vertical"      setdraw 2
  279.     item " &Double"               setdraw 3
  280.     item " &Eraser"               setdraw 4
  281.   end
  282.  
  283.   menu  "editMacro"
  284.     item " &Record Toggle        <ctrl m>"    record
  285.     item " &Play             <ctrl enter>"    play
  286.     item " &Erase"                            erasekey
  287.     item " Era&se All"                        erasekey 'a'
  288.     item " Ope&n.."                           askopenkey
  289.     item " Sa&ve.."                           asksavekey
  290.     item " &Assign to Key.."                  assignkey
  291.     item "─"
  292.     item " &Configuration.."                  opencfg "config"
  293.     item " &Keys.."                           opencfg "kbd"
  294.     item " Sample Utility &Macros.."
  295.       runmacro (getbootpath + "MACRO\\" + "utility.x")
  296.     item "─"
  297.     item " Macro E&xpression.."               askeval
  298.     item " R&un Macro..          <ctrl x>"    askrmacro
  299.     item " &Include Macro.."                  askimacro
  300.     item " Compi&le Macro.."                  askcmacro
  301.     item "─"
  302.     item " &OS Command..         <alt f9>|*"  askrun
  303.     item " OS Cap&ture..         <alt f8>"    askruncap
  304.     item " OS S&hell                 <f9>|*"  shell
  305.   end
  306.  
  307.   menu  "editHelp"
  308.     item " &User's Guide Topics"
  309.       runmacro (getbootpath + "MACRO\\" + "helpuser.x")
  310.     item " User's &Guide"                            quickref 'u'
  311.     item " User &Tips"                               quickref 't'
  312.     item "-"
  313.     item " &Language Reference Topics"
  314.       runmacro (getbootpath + "MACRO\\" + "helplang.x")
  315.     item " Language &Reference"                      quickref 'l'
  316.     item "-"
  317.     item " &Function Reference          <shift f2>"  quickref 'f'
  318.     item " Function &Quick Reference    <shift f1>"  quickref 'q'
  319.     item "-"
  320.     item " &Ordering Information"                    quickref 'o'
  321.   end
  322.  
  323.  
  324. // ───────────────────────────────────────────────────────────────────
  325. //  File Manager window menu bar
  326. // ───────────────────────────────────────────────────────────────────
  327.  
  328.   function  FmgrMen
  329.     menubar "" 1
  330.       item "&File"    "fmgrFile"
  331.       item "&Window"  "fmgrWindow"
  332.       item "&Mark"    "fmgrMark"
  333.       item "&Command" "fmgrCommand"
  334.       item "&Sort"    "fmgrSort"
  335.       item "&Print"   "fmgrPrint"
  336.       item "Se&t"     "fmgrSet"
  337.       item "M&acro"   "editMacro"
  338.       item "&Help"    "editHelp"
  339.     end
  340.   end
  341.  
  342.  
  343. // ───────────────────────────────────────────────────────────────────
  344. //  File Manager window pulldown menus
  345. // ───────────────────────────────────────────────────────────────────
  346.  
  347.   menu  "fmgrFile"
  348.     item " &New"                           opennew
  349.     item " &Open..               <alt e>"  askopen
  350.     item " Open &Binary.."                 askopenb
  351.     item " Open Las&t"                     openlast
  352.     item " &Parent          <ctrl baksp>"  fup
  353.     item " R&efresh"                       reopen
  354.     item "─"
  355.     item " &Close            <ctrl k><q>"  close
  356.     item " Close &All            <alt x>"  closeall
  357.     item "─"
  358.     item " Abo&ut.."                       about
  359.   end
  360.  
  361.   menu  "fmgrWindow"
  362.     item " &Restore"                      restore
  363.     item " &Move/Size      <ctrl o><r>"   sizekey
  364.     item " P&an              <ctrl f6>"   pankey
  365.     item " M&inimize"                     minimize
  366.     item " Ma&ximize       <ctrl o><z>"   maximize
  367.     item " &Next           <ctrl o><n>"   nextwindow
  368.     item " &Prev           <ctrl o><p>"   prevwindow
  369.     item " &List.."                       winlist
  370.     item "─"
  371.     item " Ca&scade         <shift f5>"   cascade
  372.     item " Tile &Horz"                    tile 'h'
  373.     item " Tile &Vert"                    tile 'v'
  374.     item "─"
  375.     item " Pr&ompt Style.."               askprompt
  376.   end
  377.  
  378.   menu  "fmgrMark"
  379.     item " Mark &Toggle     <space>"     fmark
  380.     item "─"
  381.     item " &Mark All        <alt m>"     fmark "ma"
  382.     item " &Unmark All      <alt u>"     fmark "ua"
  383.   end
  384.  
  385.   menu  "fmgrCommand"
  386.     item " &Open                  <enter>"    fopen
  387.     item " Open &Binary         <shift b>"    fopen 'b'
  388.     item " Open &Key Macro      <shift k>"    openkey2 (getffile)
  389.     item "─"
  390.     item " &Move..              <shift m>"    fmove
  391.     item " &Copy..              <shift c>"    fcopy
  392.     item " &Delete     <del> or <shift d>"    fdelete
  393.     item " Re&name..            <shift n>"    frename
  394.     item "─"
  395.     item " &Run                 <shift r>"    frun 'c'
  396.     item " &Print               <shift p>"    fprint
  397.     item "─"
  398.     item " &Attributes..        <shift a>"    fattr
  399.     item " &Touch               <shift t>"    ftouch
  400.     item "─"
  401.     item " Cr&eate Directory.."               fmkdir
  402.     item " &Scan Files..         <ctrl s>"    askscan
  403.   end
  404.  
  405.   menu  "fmgrSort"
  406.     item " &Name           <alt n>"    fsort 'n'
  407.     item " &Extension"                 fsort 'e'
  408.     item " &Size           <alt s>"    fsort 's'
  409.     item " &Date-Time      <alt d>"    fsort 'd'
  410.     item " &OS Default     <alt o>"    fsort 'o'
  411.   end
  412.  
  413.   menu  "fmgrSet"
  414.     item " Bi&nary Line Length..|*"                askbinary
  415.     item " L&ine Delimiter..|*"                    askdelim
  416.     item "─"
  417.     item " &Video Mode..                   "      submenu "Fonts"
  418.     item " Video To&ggle           <ctrl f1>|*"    togglemode
  419.     item "-"
  420.     item " Save &Current Settings"                 saveconfig
  421.     item " &Recompile the Editor"                  recompile
  422.   end
  423.  
  424.   menu  "fmgrPrint"
  425.     item " &Print"                        print
  426.     item " Print &Formfeed"               printstr (char 12)
  427.     item " Print &Settings..|*    "       askprint
  428.   end
  429.  
  430.  
  431. // ───────────────────────────────────────────────────────────────────
  432. //  Miscellaneous menus
  433. // ───────────────────────────────────────────────────────────────────
  434.  
  435.   // yes/no/cancel popup menu
  436.   menu  "ync"
  437.     item " &Yes"
  438.     item " &No"
  439.     item " &Cancel"
  440.   end
  441.  
  442.   // ok/cancel popup menu
  443.   menu  "ok"
  444.     item " O&k"
  445.     item " &Cancel"
  446.   end
  447.  
  448.   // replace/append/cancel popup menu
  449.   menu  "rac"
  450.     item " &Replace"
  451.     item " &Append"
  452.     item " &Cancel"
  453.   end
  454.  
  455.  
  456. // ───────────────────────────────────────────────────────────────────
  457. //  QEdit/TSE menus
  458. // ───────────────────────────────────────────────────────────────────
  459.  
  460.   // change case menu
  461.   menu  "chgcase"
  462.     item " &Word at the Cursor"  1
  463.     item " Current &Line"        2
  464.     item " &Block"               3
  465.   end
  466.  
  467.